import Vue from 'vue'
import Router from 'vue-router'
Vue.use(Router)

export default new Router({
  mode: "history",
  routes: [
    {
      path: '/',
      name: 'index',
      component: () => import('@/views/index.vue'),
      children: [
        {
          path: '/enterprise',
          name: 'index',
          component: () => import('@/views/certification/enterprise.vue')
        },
        {
          path: '/realname',
          name: 'index',
          component: () => import('@/views/certification/realname.vue')
        },
      ]
    },
    {
      path: '/registry',
      name: 'registry',
      component: () => import('@/views/registry/registry.vue')
    },
    {
      path: '/login',
      name: 'login',
      component: () => import('@/views/login/login.vue')
    }
  ]
})
